/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package GUI;

import javax.swing.JOptionPane;
import javax.swing.text.*;
/**
 *
 * @author Wei Liang
 */
public class callmain {

    /**
     * @param args the command line arguments
     */
    public static GUI gui = new GUI();

    //<editor-fold desc="Methods">
     public static void sendT(String msgT){
        String temp = "T" + msgT;
        gui.addchatH(temp, false);

    }

    public static void sendA(String msgA){
        String temp = "A" + msgA;
        gui.addchatH(temp, true);
    }//</editor-fold>

    //<editor-fold desc="Main">
    public static void main(String[] args) {
        // TODO code application logic here
         //GUI gui = new GUI();
         gui.setVisible(true);
         gui.setchatH();
         //gui.setchatM("testingok");
         //String str = gui.getchatM();
         //JOptionPane.showMessageDialog(null,str);
    }//</editor-fold>
}
